
// GET 请求



new Vue({
    el: '#app',
    data: {
        message: 'Hello Vue 2!'
    },
    created(){
        const params = new URLSearchParams(window.location.search);
        console.log(params.get("name")); // Tom
        console.log(params.get("age"));  // 20
    },
    mounted(){
      this.baiduData()
    },
    methods: {
        changeMessage() {
            this.message = 'Vue 2 直接在 HTML 中使用！';
        },
        baiduData(){
          $post("/login",{
             data:{
                 "username": "18013049720",
                 "password": "Aa123456@",
                 "loginType": "LOGIN_TYPE_PC"
             }
          })
        }
    }
});
